Skip to content

[#294] Book card polish: accent title + metadata alignment#295

Merged
realproject7 merged 1 commit intomainfrom
task/294-book-card-polish
Mar 18, 2026
Merged

[#294] Book card polish: accent title + metadata alignment#295
realproject7 merged 1 commit intomainfrom
task/294-book-card-polish

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Book title color changed from text-foreground (white) to text-accent (green) to reinforce the terminal aesthetic
  • Metadata row left padding adjusted from px-1 to pl-[7px] pr-1 to align with the front cover's visual left edge (6px layer offset + 1px border)

Fixes #294

Test plan

  • Verify book titles render in green (#00ff88) on home page
  • Verify metadata row (TVL, plot count, rating) aligns with card left edge
  • Check responsive behavior at mobile (2-col) and desktop (3-col) grid sizes
  • Confirm no layout shifts or text clipping

🤖 Generated with Claude Code

- Title text uses text-accent (green) instead of text-foreground (white)
- Metadata row left padding adjusted to pl-[7px] to align with front
  cover's visual left edge (6px layer offset + 1px border)

Fixes #294

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean two-line change. Title color swap and metadata alignment math (6px offset + 1px border = 7px) both check out. LGTM.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The PR stays within issue #294 scope and applies the two requested StoryCard polish changes cleanly.

Findings

  • No blocking findings.

Decision

Approving because the title now uses the accent green and the metadata row padding accounts for the 6px page offset without broadening the change set.

@realproject7 realproject7 merged commit a58cc10 into main Mar 18, 2026
1 check passed
realproject7 added a commit that referenced this pull request Mar 27, 2026
Add checkUserExists() helper that checks if any DB row exists for a
wallet. Agents page and dashboard now distinguish between known users
with agent_id=NULL (definitive non-agents, skip RPC) and completely
unknown wallets (still eligible for RPC fallback + auto-cache).
Eliminates 3+ unnecessary RPC calls per visit for known non-agent users.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
realproject7 added a commit that referenced this pull request Mar 27, 2026
Known non-agents (DB row with agent_id=NULL) now get a single
non-blocking agentIdByWallet RPC call to catch external registrations.
If positive, auto-caches and updates UI. Avoids the heavy 3-call chain
(balanceOf, tokenOfOwnerByIndex, etc.) while still detecting users who
registered as agents externally after their PlotLink account was created.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
realproject7 added a commit that referenced this pull request Mar 27, 2026
Remove lightweight background agentIdByWallet check for known
non-agents. Users with a DB row and agent_id=NULL now make zero RPC
calls — definitively treated as non-agents per issue spec.

External agent registrations for existing PlotLink users are handled
via profile refresh flow. Full RPC fallback (3+ calls) only fires
for completely unknown wallets with no DB record.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
realproject7 added a commit that referenced this pull request Mar 27, 2026
Fix regression: DB-detected owners now correctly use cached
agent_wallet for storyline lookup instead of the connected owner
wallet address.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
realproject7 added a commit that referenced this pull request Mar 27, 2026
When a user refreshes their profile via /api/user/onboard and has no
cached agent_id, check the ERC-8004 registry via getAgentMetadata().
If an agent is found, persist agent columns to DB. This provides the
sync path for existing PlotLink users who register as agents externally.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
realproject7 added a commit that referenced this pull request Mar 27, 2026
Profile refresh now checks both agentIdByWallet (bound wallet) and
balanceOf + tokenOfOwnerByIndex (NFT owner) before falling back to
getAgentMetadataById. Covers existing PlotLink users who register
as agents externally with a separate or unset bound wallet.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
realproject7 added a commit that referenced this pull request Mar 27, 2026
getAgentMetadata() now fetches getAgentWallet() in parallel with
agentURI and ownerOf, so the agent_wallet field is populated when
caching direct bound-wallet registrations via profile refresh.
Prevents misclassification of bound wallets as owners.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PlotLink: Book card polish — title color + metadata alignment

2 participants